﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace epk23.PartIIProject
{
    class SpeedManager
    {
        private int speed;
        public int Speed
        {
            get
            {
                lock (this)
                {
                    return speed;
                }
            }
            set
            {
                lock (this)
                {
                    speed = value;
                }
            }
        }

        private bool waiting;
        public bool Waiting
        {
            get
            {
                lock (this)
                {
                    return waiting;
                }
            }
            set
            {
                lock (this)
                {
                    waiting = value;
                }
            }
        }
    }
}
